package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 工厂管理对象 factory_management
 *
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("工厂管理")
public class FactoryManagement implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(name = "id", value = "工厂管理id", dataType = "Long")
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(name = "name", value = "名称", dataType = "String")
    private String name;

    /** 联系人 */
    @Excel(name = "联系人")
    @ApiModelProperty(name = "linkman",value = "联系人",dataType = "String")
    private String linkman;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(name = "contactWay",value = "联系方式",dataType = "String")
    private String contactWay;

    /** 地址 */
    @Excel(name = "地址")
    @ApiModelProperty(name = "address",value = "地址",dataType = "String")
    private String address;

    /** 证件资料-营业执照 */
    @Excel(name = "证件资料-营业执照")
    @ApiModelProperty(name = "factoryBusinessLicense",value = "证件资料-营业执照",dataType = "String")
    private String factoryBusinessLicense;

    /** 证件资料-身份证正面 */
    @Excel(name = "证件资料-身份证正面")
    @ApiModelProperty(name = "factoryIdentityCardFront",value = "证件资料-身份证正面",dataType = "String")
    private String factoryIdentityCardFront;

    /** 证件资料 */
    @Excel(name = "证件资料-身份证反面")
    @ApiModelProperty(name = "factoryIdentityCardReverse",value = "证件资料",dataType = "String")
    private String factoryIdentityCardReverse;

    /** 证件资料 */
    @Excel(name = "证件资料-其他资料")
    @ApiModelProperty(name = "factoryImg",value = "证件资料",dataType = "String")
    private String factoryImg;

    /** 分类 */
    @Excel(name = "分类")
    @ApiModelProperty(name = "type",value = "分类",dataType = "String")
    private String type;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy",value = "创建人",dataType = "String")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间", dataType = "Date", notes = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy", value = "更新人", dataType = "String")
    private String updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间", dataType = "Date", notes = "yyyy-MM-dd")
    private Date updatedTime;

    @ApiModelProperty(name = "logo", value = "工厂logo")
    private String logo;

    @ApiModelProperty(value = "简介图")
    @TableField(exist = false)
    private String introductionImg;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setLinkman(String linkman)
    {
        this.linkman = linkman;
    }

    public String getLinkman()
    {
        return linkman;
    }
    public void setContactWay(String contactWay)
    {
        this.contactWay = contactWay;
    }

    public String getContactWay()
    {
        return contactWay;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }

    public String getFactoryBusinessLicense() {
        return factoryBusinessLicense;
    }

    public void setFactoryBusinessLicense(String factoryBusinessLicense) {
        this.factoryBusinessLicense = factoryBusinessLicense;
    }

    public String getFactoryIdentityCardFront() {
        return factoryIdentityCardFront;
    }

    public void setFactoryIdentityCardFront(String factoryIdentityCardFront) {
        this.factoryIdentityCardFront = factoryIdentityCardFront;
    }

    public String getFactoryIdentityCardReverse() {
        return factoryIdentityCardReverse;
    }

    public void setFactoryIdentityCardReverse(String factoryIdentityCardReverse) {
        this.factoryIdentityCardReverse = factoryIdentityCardReverse;
    }

    public String getFactoryImg() {
        return factoryImg;
    }

    public void setFactoryImg(String factoryImg) {
        this.factoryImg = factoryImg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("linkman", getLinkman())
                .append("contactWay", getContactWay())
                .append("address", getAddress())
                .append("factoryBusinessLicense", getFactoryBusinessLicense())
                .append("factoryIdentityCardFront", getFactoryIdentityCardReverse())
                .append("factoryIdentityCardReverse", getFactoryIdentityCardReverse())
                .append("factoryImg", getFactoryImg())
                .append("type", getType())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getIntroductionImg() {
        return introductionImg;
    }

    public void setIntroductionImg(String introductionImg) {
        this.introductionImg = introductionImg;
    }
}
